//
//  UpdataViewController.m
//  基本框架
//
//  Created by runone02 on 2018/8/22.
//  Copyright © 2018年 liqiyun. All rights reserved.
//

#import "UpdataViewController.h"
#import "UIAlertController+NewVersion.h"
@interface UpdataViewController ()

@end

@implementation UpdataViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self loadUpdataView];
    [self setupNavView];
}

- (void)loadUpdataView{
    self.view.backgroundColor = [UIColor whiteColor];
    
    NSString *currentVersion = @"2.0.0";
    NSString *title = @"1.修正了部分单词页面空白的问题\n2.修正了部分单词页面空白的问题\n3.修正了部分单词页面空白的问题";
    
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        
        [UIAlertController AlertControllerWithCurrentVersion:currentVersion andTitle:title andController:self];
    });
}

- (void)setupNavView{
    [self.navView.leftButton setTitle:@"返回" forState:UIControlStateNormal];
    [self.navView.centerButton setTitle:@"版本更新" forState:UIControlStateNormal];
}
@end
